import request from '@/utils/request';

/**
 * 获取验证码
 * @returns
 */

export const validataCode = () =>
  request({
    url: '/api/admin/validate/code/arithmetic',
    method: 'get'
  });

/**
 * 登录
 * @param {*} params
 * @returns
 */

export const setOauthToken = (params) =>
  request({
    url: '/api/oauth/token',
    method: 'get',
    params
  });

/**
 * 获取菜单
 * @param {*} params
 * @returns
 */

export const getMenus = (params) =>
  request({
    url: '/api/menus/build',
    method: 'get',
    params
  });
